package org.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.bean.Power;

import java.util.List;

/**
 * @Auther:Liu
 * @Testname:PowerMappper
 * @Date:2025/9/17 14:55
 */
@Mapper
public interface PowerMappper extends BaseMapper<Power> {
@Select("Select * from power where id in (select power_id from student_power where student_id=#{studentId})")
    List<Power> findPowersByStudentId(String studentId);
}
